from exts import db


class User(db.Model):
    __tablename__ = 'user'
    telephone = db.Column(db.String(11), nullable=False, primary_key=True)
    username = db.Column(db.String(50), nullable=False)
    password = db.Column(db.String(100), nullable=False)
    identification = db.Column(db.String(50), nullable=False)

    id_card = db.Column(db.String(50))
    true_name = db.Column(db.String(50))
    sex = db.Column(db.String(10))
    birthday = db.Column(db.String(50))
    email = db.Column(db.String(50))
    family_telephone1 = db.Column(db.String(50))
    relationship1 = db.Column(db.String(10))
    family_telephone2 = db.Column(db.String(50))
    relationship2 = db.Column(db.String(10))

#
# class Super_admin(db.Model):
#     __tablename__ = 'superadmin'
#     username = db.Column(db.String(50), nullable=False, primary_key=True)
#     password = db.Column(db.String(100), nullable=False)
#
#
# class Admin(db.Model):
#     __tablename__ = 'admin'
#     username = db.Column(db.String(50), nullable=False, primary_key=True)
#     password = db.Column(db.String(100), nullable=False)
